import type {
  GreasyForkElements,
} from '../../../../../../../../../types/constants/personalization/greasy_fork.ts'
import {
  BLOCKQUOTE_STYLES,
  PAGE_ELEMENTS,
  PROJECT_PREFIX,
  SUPPORTED_PLATFORMS,
} from '../../../../../../../../../types/constants'

// 测试链接：https://greasyfork.org/zh-CN/scripts/431044-fsu-eafc-fut-web-%E5%A2%9E%E5%BC%BA%E5%99%A8/script_lock_appeals/1471
export class ScriptLockAppealsPage {
  elements: GreasyForkElements = PAGE_ELEMENTS[SUPPORTED_PLATFORMS.GREASY_FORK]
  private static instance: ScriptLockAppealsPage

  /**
   * 获取单例实例
   */
  public static getInstance(): ScriptLockAppealsPage {
    if (!ScriptLockAppealsPage.instance) {
      ScriptLockAppealsPage.instance = new ScriptLockAppealsPage()
    }
    return ScriptLockAppealsPage.instance
  }

  init(): void {
  }

  getMainStyles(): string {
    return `
#script-info {
  #script-content {
    .user-content {
      background: unset !important;
      ${BLOCKQUOTE_STYLES.BASE}
      color: var(--${PROJECT_PREFIX}-theme-text-secondary) !important;
      border: none !important;
      border-left: none !important;
      overflow-x: unset !important;
    }
  }
}
`
  }
}
